

#include <iostream>
#include "tmp.h"

int main()
{
	singleton *a = singleton::getInstance();
	//singleton *b = singleton::getInstance();

	//std::cout << "--------------" << std::endl;
	//a->~singleton();
	//b->~singleton();

	//singleton *c = singleton::getInstance();
	//delete a;
	//delete b;
	

	//嵌套类中嵌套类
	//A a = A(); //ok
	//A *a = new A(); delete a;//ok
	return 0;
}